﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/Site.Master" Inherits="System.Web.Mvc.ViewPage<CodeCamp.Models.Sessions.SessionsListViewModel>" %>

<asp:Content ID="Content1" ContentPlaceHolderID="TitleContent" runat="server">
  <%= Html.Encode( Model.EventDisplayName ) %> | Sessions
</asp:Content>

<asp:Content ID="EventTags" ContentPlaceHolderID="EventTagsContent" runat="server">
  <div id="eventTagsContainer" class="widget rounded-10">
    <h3>Tags</h3>
    <% Html.RenderPartial( "PartialViews/EventTags", Model.EventTags ); %>
  </div>
</asp:Content>



<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">

  <h1 class="title">Sessions</h1>

  <p>
    <%= Html.Encode( Model.Sessions.Count ) %> sessions.
<%--
    <%= Html.ActionLink( "Submit your's today", "Add" ) %>.
--%>
  </p>

  <p>
    <b>Tag! You're it!</b> Click on a session to edit its tags.
  </p>

  <div class="presentations">
  <% foreach ( var session in Model.Sessions ) { %>
      <div class="presentation-container">
          <% Html.RenderPartial( "PartialViews/SessionTitle", 
               new CodeCamp.Models.Sessions.SessionTitle { SessionId = session.SessionId, Title = session.Title } ); %>
          <% Html.RenderPartial( "PartialViews/SessionPresenters", session.SessionPresenters ); %>
          <% if ( session.SessionScheduleInfo != null )
             { Html.RenderPartial( "PartialViews/SessionScheduleInfo", session.SessionScheduleInfo ); } %>
          <% Html.RenderPartial( "PartialViews/SessionTags", session.SessionTags ); %>

          <p><%= Html.Encode( session.Description ) %></p>
      </div>
  <% } %>
  </div>

</asp:Content>
